<template>
    <button @click="toNextAc">下一页</button>
    <button @click="changeMsg">改变当前页面值</button>
    <div>{{mCurrentMsg}}</div>
</template>
<script setup lang="ts">
import { getCurrentInstance, ref } from 'vue';
import { useRouter } from 'vue-router'
// import mRouterInstance from '@/router'
let mRouterInstance = useRouter()
const mCurrentMsg = ref("页面1：")
const toNextAc = () => {
    // mKeepAlive.setTrue()
    mRouterInstance.replace({
        query:{uerId:1},
        name: 'TestRouter2Ac',
        // name: 'TestRouter2Ac'
    })
}
console.log("1111");

// const instance = getCurrentInstance();
// console.log("instance1", instance);
// let test2 = Promise<typeof import('@/ui/test/router/TestRouter1Ac.vue')>
// console.log("111", test2.name, test2);


const changeMsg = () => {
    mCurrentMsg.value = mCurrentMsg.value + "改变后"
}

</script>
<style scoped>

</style>